package com.yyaccp.easybuy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author john.yi@qq.com
 * @since 2022-04-20
 */
@TableName("easybuy_product_category")
@ApiModel(value = "ProductCategory对象", description = "")
public class ProductCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("父级目录id")
    private Integer parentId;

    @ApiModelProperty("级别(1:一级 2：二级 3：三级)")
    private Integer type;

    @ApiModelProperty("图标")
    private String iconClass;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getIconClass() {
        return iconClass;
    }

    public void setIconClass(String iconClass) {
        this.iconClass = iconClass;
    }

    @Override
    public String toString() {
        return "ProductCategory{" +
            "id=" + id +
            ", name=" + name +
            ", parentId=" + parentId +
            ", type=" + type +
            ", iconClass=" + iconClass +
        "}";
    }
}
